package com.xrkj.b2c.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 读取配置文件工具类
 * @author Administrator
 *
 */
public class PropertiesUtils {

	/**
	 * 读取配置文件方法
	 */
	public  Properties readProperties(String filename){
		Properties pr=new Properties();
		InputStream in=this.getClass().getResourceAsStream("/"+filename);
		try {
			pr.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return pr;
	}
}
